/**
 * 产品修改js
 */
var activityShow={
	getActivity:function(){
		 
		var dateUrl = '../../common/ActivityCtrl/getById';
		var data = {
 				'id': wxUtils.getParamsByUrl('id')
 		};
		jQuery.ajax({
			type: "POST",
			async : false,
			url : dateUrl,
			contentType : 'application/json',
			data : JSON.stringify(data),
			dataType : 'json',
			timeout : 2000000, // 30秒超时
			success : function(data, textStatus) {
				if (data.resultCode == 200) {
					var singleObj = data.result;
					$("body").html(singleObj.activityText);
				}
			},
			error : function(result) {
				//alert(result.status+'请求错误，请稍后再试！');
			}
		});
	},
	
	init:function(){
		activityShow.getActivity();
	}
}

$(document).ready(function() {
	activityShow.init();
});